/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;


import dominio.TurmaDisciplina;
import java.util.Set;

/**
 *
 * @author jair
 */
public class TurmaDisciplinaDAO extends GenericDAO {

     public int inserirTurmaDisciplina(TurmaDisciplina turmaDisciplina){
        salvar(turmaDisciplina);
        return turmaDisciplina.getId();
    }
    
    public void apagarTurmaDisciplina(TurmaDisciplina turmaDisciplina){
        remover(turmaDisciplina);
    }
    
    public void atualizarTurmaDisciplina(TurmaDisciplina turmaDisciplina){
        atualizar(turmaDisciplina);
    }
    
    public Set<TurmaDisciplina> getTurmaDisciplinas(){
        return getLista(TurmaDisciplina.class,"select m from TurmaDisciplina m");
    }

}
